package com.woniuxy.health.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.health.commons.entity.Package;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface PackageMapper extends BaseMapper<Package> {

    @Select("select id,package_name,package_details,package_price,organizationid from t_package")
    List<Package> fingAllPackages();

    @Select("select id,package_name,package_details,package_price,organizationid from t_package where id=#{id}")
    Package  fingPackageById(int id);
}
